package model

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UId                 int     `gorm:"type:int(11);not null;comment:用户Id"`
	OrderNum            string  `gorm:"varchar(255);not null;comment:订单编号"`
	StudyPlanId         int     `gorm:"type:int(11);not null;comment:课程Id"`
	TotalAmount         float64 `gorm:"type:decimal(10,2);not null;comment:总金额"`
	DiscountAmount      float64 `gorm:"type:decimal(10,2);not null;comment:优惠金额"`
	ActualPaymentAmount float64 `gorm:"type:decimal(10,2);not null;comment:实际支付金额"`
	Status              int     `gorm:"type:int(10);not null;comment:1-已完成 2-已支付 3-未支付 4-已取消"`
}
